{% extends './main.html' %}
<!doctype html>
{# main.html 中实现了登录(loginID), 注册(registeID), 显示并修改用户信息(infoID0，退出quit的功能#}
{#           改动：删除了上一版中的login.html, registe.html, customer.html文件#}
{#                修改 Platform/common/views.py 中的registe#}
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>登录</title>
  </head>

  {% block body %}
  <div id="background_1">
  <br><br><br><br>
    <div id="loginID" class="container show active" style="position: -webkit-sticky;position: sticky;top:20%;background: white;padding: 0 15px 40px;border:2px solid black;border-radius: 15px;opacity: 0.9;"><br>
        {#登录界面#}
        <div class="col">
          <form class="form-login" action="showmain" method="post">
              <h3 class="text-center">欢迎登录</h3>
              <div class="form-group">
                <label for="id_username">用户名：</label>
                <input type="text" name='username' class="form-control" id="id_username" placeholder="Username" autofocus required>
              </div>
              <div class="form-group">
                <label for="id_password">密码：</label>
                <input type="password" name='password' class="form-control" id="id_password" placeholder="Password" required>
              </div>
            <div>
              <a href="/common/registe" class="text-success"><ins>新用户注册</ins></a>
              <button type="submit" class="btn btn-primary float-right">登录</button>
            </div>
          </form>
        </div>
    </div>
  </div>
  {% endblock %}

  </body>
</html>